<?php

/* @var $this \yii\web\View */
/* @var $content string */

use backend\assets\AppAsset;
use yii\helpers\Html;

AppAsset::register($this);
$this->title = '后台管理登录';
$this->params['breadcrumbs'][] = $this->title;
?>
<?php $this->beginPage() ?>
    <!DOCTYPE html>
    <html lang="<?= Yii::$app->language ?>">
    <head>
        <meta charset="<?= Yii::$app->charset ?>">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
        <?= Html::csrfMetaTags() ?>
        <title><?= Html::encode($this->title) ?></title>
        <?php $this->head() ?>
    </head>
    <?php
    AppAsset::addCss($this,Yii::$app->request->baseUrl."static/dist/css/login2.css");
    AppAsset::addCss($this,Yii::$app->request->baseUrl."static/plugins/bootstrap/css/bootstrap.min.css");
    AppAsset::addJs($this,Yii::$app->request->baseUrl."static/jBox/jquery.jBox-2.3.min.js");
    AppAsset::addJs($this,Yii::$app->request->baseUrl."static/jBox/i18n/jquery.jBox-zh-CN.js");
    AppAsset::addCss($this,Yii::$app->request->baseUrl."static/jBox/Skins/Metro/jbox.css");
    AppAsset::addJs($this,Yii::$app->request->baseUrl."static/app/login/index.js");
    ?>
    <body>
    <?php $this->beginBody() ?>
    <div class="cont">
        <div class="demo">
            <div class="login">
                <div class="login__check">
                    <?= Html::img(Yii::$app->request->baseUrl.'/static/dist/img/logo.png',array('alt'=>'login image'));?>
                    <!--<img src="../../dist/img/logo.png" alt="">-->
                </div>
                <form class="login__form" id="login-form1">
                    <div class="login__row">
                        <svg class="login__icon name svg-icon" viewBox="0 0 20 20">
                            <path d="M0,20 a10,8 0 0,1 20,0z M10,0 a4,4 0 0,1 0,8 a4,4 0 0,1 0,-8" />
                        </svg>                       
                        <input type="text" id="user_name" name="user_name" class="login__input name" placeholder="用户名"/>
                    </div>
                    <div class="login__row">
                        <svg class="login__icon pass svg-icon" viewBox="0 0 20 20">
                            <path d="M0,20 20,20 20,8 0,8z M10,13 10,16z M4,8 a6,8 0 0,1 12,0" />
                        </svg>
                        <input type="password" id="user_pwd" name="user_pwd" class="login__input pass" placeholder="密码"/>
                    </div>
                    <!--<p id="error_text">请输入密码</p>-->
                    <button class="login__submit">登 录</button>
                    <p class="login__signup">电商管理系统 v1.0.0</p>
                </form>
            </div>
        </div>
    </div>
    <?php
    AppAsset::addJs($this,Yii::$app->request->baseUrl."static/dist/js/pages/login2.js?t=1");
    ?>
    <?php $this->endBody() ?>

    <script type="text/javascript">
        <?php $this->beginBlock('js') ?>
        <?php $this->endBlock() ?>
        <?php $this->registerJs($this->blocks['js'], \yii\web\View::POS_END); ?>
    </script>
    </body>
    </html>
<?php $this->endPage() ?>